package com.linktrip.devicemanager.entity;

public class DeviceLog extends BaseEntity {

	/**
	 * @date 2017/02/15
	 * @author CaineZhu
	 */
	private static final long serialVersionUID = 6859658077581817117L;

	private int id; // ID 主键
	private int length;// 数据长度
	private int proto_version;// 协议版本号
	private int type; // 数据包类型
	private short message_id;// 消息id
	private int sos_flag; // 0x00=成功，0x01=解密失败，0x10=指令执行失败
	private String device_no;// 锁编号
	private int sys_version; // 固件编号
	private int mode;// 异常模式
	private int lock_status;// 设备状态 0=未知,1=LOCK,2=UNLOCK
	private int battery_stat;// 电池电量
	private int charge;// 充电状态 1=充电中,0未充电
	private int blink_status;// 闪灯
	private int beep_count;// 蜂鸣
	private int signature;// 签名
	private double latitude;// 纬度
	private double longitude;// 经度
	private long time_stamp;// 上报时间
	private int hdware_version;// 硬件版本
	private int temperature;// 温度
	private int vbus;// '电压'
	private int icharge;// 充电电流
	private int vbattery;// 电池电压
	private int na1;// 1:gps 2:lbs
	private int na2;// csq信号
	private int crc;// 充电电流

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getProto_version() {
		return proto_version;
	}

	public void setProto_version(int proto_version) {
		this.proto_version = proto_version;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getMessage_id() {
		return message_id;
	}

	public void setMessage_id(short message_id) {
		this.message_id = message_id;
	}

	public int getSos_flag() {
		return sos_flag;
	}

	public void setSos_flag(int sos_flag) {
		this.sos_flag = sos_flag;
	}

	public String getDevice_no() {
		return device_no;
	}

	public void setDevice_no(String device_no) {
		this.device_no = device_no;
	}

	public int getSys_version() {
		return sys_version;
	}

	public void setSys_version(int sys_version) {
		this.sys_version = sys_version;
	}

	public int getMode() {
		return mode;
	}

	public void setMode(int mode) {
		this.mode = mode;
	}

	public int getLock_status() {
		return lock_status;
	}

	public void setLock_status(int lock_status) {
		this.lock_status = lock_status;
	}

	public int getBattery_stat() {
		return battery_stat;
	}

	public void setBattery_stat(int battery_stat) {
		this.battery_stat = battery_stat;
	}

	public int getCharge() {
		return charge;
	}

	public void setCharge(int charge) {
		this.charge = charge;
	}

	public int getBlink_status() {
		return blink_status;
	}

	public void setBlink_status(int blink_status) {
		this.blink_status = blink_status;
	}

	public int getBeep_count() {
		return beep_count;
	}

	public void setBeep_count(int beep_count) {
		this.beep_count = beep_count;
	}

	public int getSignature() {
		return signature;
	}

	public void setSignature(int signature) {
		this.signature = signature;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public long getTime_stamp() {
		return time_stamp;
	}

	public void setTime_stamp(long time_stamp) {
		this.time_stamp = time_stamp;
	}

	public int getHdware_version() {
		return hdware_version;
	}

	public void setHdware_version(int hdware_version) {
		this.hdware_version = hdware_version;
	}

	public int getTemperature() {
		return temperature;
	}

	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}

	public int getVbus() {
		return vbus;
	}

	public void setVbus(int vbus) {
		this.vbus = vbus;
	}

	public int getIcharge() {
		return icharge;
	}

	public void setIcharge(int icharge) {
		this.icharge = icharge;
	}

	public int getVbattery() {
		return vbattery;
	}

	public void setVbattery(int vbattery) {
		this.vbattery = vbattery;
	}

	public int getNa1() {
		return na1;
	}

	public void setNa1(int na1) {
		this.na1 = na1;
	}

	public int getNa2() {
		return na2;
	}

	public void setNa2(int na2) {
		this.na2 = na2;
	}

	public int getCrc() {
		return crc;
	}

	public void setCrc(int crc) {
		this.crc = crc;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "DeviceLog [id=" + id + ", length=" + length + ", proto_version=" + proto_version + ", type=" + type
				+ ", message_id=" + message_id + ", sos_flag=" + sos_flag + ", device_no=" + device_no
				+ ", sys_version=" + sys_version + ", mode=" + mode + ", lock_status=" + lock_status + ", battery_stat="
				+ battery_stat + ", charge=" + charge + ", blink_status=" + blink_status + ", beep_count=" + beep_count
				+ ", signature=" + signature + ", latitude=" + latitude + ", longitude=" + longitude + ", time_stamp="
				+ time_stamp + ", hdware_version=" + hdware_version + ", temperature=" + temperature + ", vbus=" + vbus
				+ ", icharge=" + icharge + ", vbattery=" + vbattery + ", na1=" + na1
				+ ", na2=" + na2 + ", crc=" + crc + "]";
	}

	public String analysisToString() {
		super.toString();
		return "length=" + length + ", proto_version=" + proto_version + ", type=" + type + ", message_id=" + message_id
				+ ", sos_flag=" + sos_flag + ", device_no=" + device_no + ", sys_version=" + sys_version + ", mode="
				+ mode + ", lock_status=" + lock_status + ", battery_stat=" + battery_stat + ", charge=" + charge
				+ ", blink_status=" + blink_status + ", beep_count=" + beep_count + ", signature=" + signature
				+ ", latitude=" + latitude + ", longitude=" + longitude + ", time_stamp=" + time_stamp
				+ ", hdware_version=" + hdware_version + ", temperature=" + temperature + ", vbus=" + vbus
				+ ", icharge=" + icharge + ", vbattery=" + vbattery + ", na1=" + na1
				+ ", na2=" + na2 + ", crc=" + crc;
	}

}
